<!DOCTYPE html>
<html lang="zn-CN">
<head>
    <meta charset="UTF-8">
    <title>Blackmail</title>
    <link rel="stylesheet" href="static/layui/css/layui.css">
    <script src="static/layui/layui.js"></script>
</head>
<body>

<div class="layui-bg-green" align="center">
    勒索病毒监测
</div>

<div class="layui-card">
    <div class="layui-card-body">
        <table id="BlackmailTable" lay-filter="BlackmailTable"></table>
    </div>
</div>

<script type="text/html" id="barDemo">
    <a class="layui-btn layui-btn-danger layui-btn-xs layui-anim layui-anim-scaleSpring" lay-event="del">删除</a>
</script>

<script type="text/javascript">
    layui.use(['table', 'jquery','form', 'layer','upload'], function () {
        var table = layui.table;
        var $ = layui.jquery;
        var layer = layui.layer;
        table.render({
            elem: '#BlackmailTable'
            , url: '/ip/getBlackmail'
            , title: '常用勒索端口监控'
            , totalRow: true
            , cols: [[  //表头
                {field: 'l4_DST_PORT', title: '端口号'},
                {field: 'number', title: '统计(访问次数)'},
            ]],
            parseData: function (res) {
                console.log(res);
                layer.msg(res.msg);
                return {
                    "code": 0,
                    "msg": res.msg,
                    "count": res.data.length,
                    "data": res.data
                }
            },
        });
    })
</script>

</body>
</html>